package com.service;

import com.entity.User;
import com.exception.ServiceException;
import com.github.pagehelper.PageInfo;
import com.vo.PageVo;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface LoginService {

    //判断登录名，密码是否正确
    List<User> LoginISNameAndPassWord(String login_name, String password)throws ServiceException;
    int updateUserS(User user)throws ServiceException;//更新
    void upLoginDateS(String login_name)throws ServiceException;//更新登陆时间
    //后台
    User findUserBy(User user, HttpServletRequest request)throws ServiceException, Exception;//管理员登陆

}
